home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- Caption = "Example 1: WorkFlow"
- ClientHeight = 3915
- ClientLeft = 1170
- ClientTop = 1545
- ClientWidth = 5685
- FillColor = &H0080FFFF&
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 4320
- Left = 1110
- LinkTopic = "Form1"
- MDIChild = -1 'True
- ScaleHeight = 3915
- ScaleWidth = 5685
- Tag = "1"
- Top = 1200
- Width = 5805
- Begin EasynetLib.Easynet Net1
- Height = 2715
- Left = 240
- TabIndex = 3
- Top = 180
- Width = 5235
- _Version = 65538
- _ExtentX = 9234
- _ExtentY = 4789
- _StockProps = 101
- BackColor = 12648447
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BorderStyle = 1
- xGrid = 5
- yGrid = 5
- Shape = 0
- FillColor = 16777215
- DrawColor = 8421504
- ForeColor = 0
- DrawWidth = 1
- Oriented = -1 'True
- ReadOnly = 0 'False
- MultiSel = -1 'True
- ScrollBars = 3
- CanDrawNode = -1 'True
- CanDrawLink = -1 'True
- CanMoveNode = -1 'True
- CanSizeNode = -1 'True
- CanStretchLink = -1 'True
- CanMultiLink = 0 'False
- Transparent = 0 'False
- DrawStyle = 6
- Alignment = 7
- ShowGrid = 0 'False
- LinkHead = 0
- DoSelChange = -1 'True
- DoAddNode = -1 'True
- DoAddLink = -1 'True
- Hiding = 0 'False
- ImageFile = ""
- DisplayHandles = -1 'True
- Zoom = 100
- AutoSize = 0
- AutoScroll = -1 'True
- End
- Begin VB.PictureBox Picture9
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 585
- Left = 3570
- Picture = "WORKFLOW.frx":0000
- ScaleHeight = 555
- ScaleWidth = 555
- TabIndex = 2
- Top = 3000
- Visible = 0 'False
- Width = 585
- End
- Begin VB.PictureBox Picture11
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 585
- Left = 4800
- Picture = "WORKFLOW.frx":030A
- ScaleHeight = 555
- ScaleWidth = 585
- TabIndex = 1
- Top = 3000
- Visible = 0 'False
- Width = 615
- End
- Begin VB.PictureBox Picture10
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 585
- Left = 4170
- Picture = "WORKFLOW.frx":0614
- ScaleHeight = 555
- ScaleWidth = 585
- TabIndex = 0
- Top = 3000
- Visible = 0 'False
- Width = 615
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim n%, interflag%
- Private Sub banner1()
- Dim Node() As Long
- Dim crlf As String
- interflag = False
- crlf = Chr$(13) + Chr$(10)
- ReDim Node(1 To 19)
- With Net1
- .AddNodeItem
- .DrawColor = 32768
- .FillColor = RGB(255, 255, 192)
- .X1 = 1050
- .X2 = 2355
- .Y1 = 60
- .Y2 = 1020
- .Text = "Order Entry"
- .Picture = Picture11.Picture
- Node(1) = .item
- .AddNodeItem
- .DrawColor = 32768
- .FillColor = 16777215
- .X1 = 1470
- .X2 = 1920
- .Y1 = 1570
- .Y2 = 2020
- .Text = "and"
- Node(2) = .item
- .AddNodeItem
- .DrawColor = 32768
- .FillColor = 16777215
- .X1 = 1425
- .X2 = 1845
- .Y1 = 4815
- .Y2 = 5295
- Node(3) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 245
- .X2 = 1360
- .Y1 = 3285
- .Y2 = 3810
- .Text = "Inventory Check"
- Node(4) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 2070
- .X2 = 3345
- .Y1 = 2700
- .Y2 = 3165
- .Text = "Compile Reference"
- Node(5) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 2070
- .X2 = 3345
- .Y1 = 3960
- .Y2 = 4395
- .Text = "Evaluate Reference"
- Node(6) = .item
- .AddNodeItem
- .Shape = 3
- .DrawColor = 32768
- .FillColor = 12632256
- .X1 = 2460
- .X2 = 2940
- .Y1 = 4800
- .Y2 = 5280
- .Text = "or"
- Node(7) = .item
- .AddNodeItem
- .Shape = 3
- .DrawColor = 32768
- .FillColor = 12632256
- .X1 = 1380
- .X2 = 1860
- .Y1 = 6390
- .Y2 = 6870
- .Text = "or"
- Node(8) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 1050
- .X2 = 2200
- .Y1 = 5620
- .Y2 = 6150
- .Text = "Order Evaluation"
- Node(9) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 30
- .X2 = 1395
- .Y1 = 7275
- .Y2 = 8190
- .Text = "Letter of regret"
- .Picture = Picture9.Picture
- Node(10) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 2010
- .X2 = 3195
- .Y1 = 7425
- .Y2 = 7815
- .Text = "Billing"
- Node(11) = .item
- .AddNodeItem
- .Shape = 2
- .DrawColor = 32768
- .FillColor = 8454143
- .X1 = 2025
- .X2 = 3195
- .Y1 = 8310
- .Y2 = 8685
- .Text = "Shipping"
- Node(12) = .item
- .AddNodeItem
- .DrawColor = 32768
- .FillColor = RGB(255, 255, 192)
- .X1 = 1080
- .X2 = 2190
- .Y1 = 9505
- .Y2 = 10420
- .Text = "Archive"
- .Picture = Picture10.Picture
- Node(13) = .item
- .item = 0
- .Shape = 2
- .DrawColor = RGB(0, 0, 255)
- .AddNodeItem
- .Transparent = -1
- .Type = 2
- .FillColor = 15269887
- .X1 = 45
- .X2 = 1260
- .Y1 = 1135
- .Y2 = 1775
- .Text = "Jane" + crlf + "INVENTORY MANAGER"
- Node(15) = .item
- .AddNodeItem
- .Transparent = -1
- .Type = 2
- .FillColor = 15269887
- .X1 = 2915
- .X2 = 3930
- .Y1 = 1110
- .Y2 = 1635
- .Text = "Paul" + crlf + "SECRETARY"
- Node(16) = .item
- .AddNodeItem
- .Transparent = -1
- .Type = 2
- .FillColor = 15269887
- .X1 = 3000
- .X2 = 4000
- .Y1 = 5640
- .Y2 = 6120
- .Text = "Lydia" + crlf + "SECRETARY"
- Node(17) = .item
- .AddNodeItem
- .DrawStyle = 2
- .Transparent = -1
- .Type = 2
- .FillColor = 15269887
- .X1 = 3410
- .X2 = 4010
- .Y1 = 7770
- .Y2 = 8310
- .Text = "Bill"
- Node(18) = .item
- .AddNodeItem
- .Transparent = -1
- .Type = 2
- .FillColor = 15269887
- .X1 = 105
- .X2 = 945
- .Y1 = 9030
- .Y2 = 9630
- .Text = "Jack" + crlf + "ARCHIVER"
- Node(19) = .item
- .AddLinkItem Node(1), Node(2)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(2), Node(4)
- .DrawColor = 32768
- .DrawStyle = 0
- .PointCount = 1
- .PointX(0) = 795
- .PointY(0) = 2130
- .AddLinkItem Node(5), Node(6)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(4), Node(3)
- .DrawColor = 32768
- .DrawStyle = 0
- .PointCount = 1
- .PointX(0) = 795
- .PointY(0) = 5040
- .AddLinkItem Node(6), Node(7)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(7), Node(3)
- .DrawColor = 32768
- .DrawStyle = 0
- .Text = "Yes"
- .AddLinkItem Node(3), Node(9)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(9), Node(8)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(8), Node(10)
- .DrawColor = 32768
- .DrawStyle = 0
- .PointCount = 1
- .PointX(0) = 705
- .PointY(0) = 6795
- .Text = "Reject"
- .AddLinkItem Node(8), Node(11)
- .DrawColor = 32768
- .DrawStyle = 0
- .PointCount = 1
- .PointX(0) = 2595
- .PointY(0) = 6795
- .Text = "Accept"
- .AddLinkItem Node(11), Node(12)
- .DrawColor = RGB(0, 0, 255)
- .DrawStyle = 0
- .AddLinkItem Node(12), Node(13)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(10), Node(13)
- .DrawColor = 32768
- .DrawStyle = 0
- .AddLinkItem Node(2), Node(5)
- .DrawColor = 32768
- .DrawStyle = 0
- .PointCount = 1
- .PointX(0) = 2700
- .PointY(0) = 2115
- .AddLinkItem Node(7), Node(5)
- .DrawColor = 32768
- .DrawStyle = 0
- .PointCount = 2
- .PointX(0) = 4020
- .PointY(0) = 5040
- .PointX(1) = 4020
- .PointY(1) = 2925
- .Text = "No"
- ' default properties for the end
- .item = 0
- .DrawStyle = 0
- .DrawWidth = 1
- .Shape = 2
- .Transparent = True
- interflag = True
- ' Now continue
- .AddLinkItem Node(15), Node(1)
- .AddLinkItem Node(16), Node(5)
- .AddLinkItem Node(16), Node(6)
- .AddLinkItem Node(15), Node(4)
- .PointCount = 1
- .PointX(0) = 450
- .PointY(0) = 2460
- .AddLinkItem Node(17), Node(9)
- .AddLinkItem Node(18), Node(11)
- .DrawStyle = 2
- .AddLinkItem Node(18), Node(12)
- .DrawStyle = 2
- .AddLinkItem Node(19), Node(10)
- .AddLinkItem Node(19), Node(13)
- ' Unselect last created link
- .item = 0
- End With
- End Sub
- Private Sub Form_Activate()
- ActivateForm
- End Sub
- Private Sub Form_Deactivate()
- DeactivateForm
- End Sub
- Private Sub Form_Load()
- MDI1.ShowExample(0).Enabled = False
- Net1.Left = 0
- Net1.Top = 0
- SpeedON Net1
- banner1
- SpeedOFF Net1
- End Sub
- Private Sub Form_Resize()
- If WindowState <> 1 And ScaleHeight <> 0 Then
- Net1.Height = ScaleHeight
- Net1.Width = ScaleWidth
- End If
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- MDI1.ShowExample(0).Enabled = True
- MDI1.Command5.Enabled = False
- MDI1.Command5.Caption = "Comments "
- End Sub
- Private Sub Net1_AddLink()
- If interflag = True Then
- Net1.Type = 2
- Net1.LinkHead = 1
- End If
- End Sub
- Private Sub Net1_AddNode()
- If Net1.X2 - Net1.X1 < 200 Then Net1.X2 = Net1.X1 + 200
- If Net1.Y2 - Net1.Y1 < 200 Then Net1.Y2 = Net1.Y1 + 200
- If interflag = True Then
- Net1.Type = 2
- End If
- End Sub
- Private Sub Net1_DblClick()
- If Net1.item <> 0 Then
- If Net1.IsLink = False Then
- If Net1.Type = 2 Then
- Dim s$
- Dim pos%
- s = Net1.Text
- pos = InStr(s, Chr$(13))
- If pos = 0 Then
- Actor = s
- Role = ""
- Else
- Actor = Left$(s, pos - 1)
- Role = Mid$(s, pos + 2)
- End If
- frmTask.Show 1
- Net1.Text = Actor + Chr$(13) + Chr$(10) + Role
- End If
- End If
- End If
- End Sub
- Private Sub Net1_KeyDown(KeyCode As Integer, Shift As Integer)
- If KeyCode = KEY_DELETE Then
- Net1.DeleteSel
- End If
- End Sub
- Private Sub Net1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- CursorShape Net1
- End Sub
-